package com.woniuxy.secondhand.entity;

import com.baomidou.mybatisplus.annotation.*;
import com.fasterxml.jackson.annotation.JsonFormat;
import io.swagger.annotations.ApiModel;
import io.swagger.annotations.ApiModelProperty;
import lombok.Data;
import lombok.EqualsAndHashCode;

import java.io.Serializable;
import java.time.LocalDateTime;

/**
 * <p>
 * 二手产品留言
 * </p>
 *
 * @author chaohuijiang
 * @since 2020-09-24
 */
@Data
@EqualsAndHashCode(callSuper = false)
@TableName("SEC_COMMENT")
@ApiModel(value="SecComment对象", description="二手产品留言")
@KeySequence("SEC_COMT")
public class SecComment implements Serializable {

    private static final long serialVersionUID = 1L;

    @ApiModelProperty(value = "评论编号")
    @TableId(value = "SEC_COMMENT_ID",type = IdType.INPUT)
    private Integer secCommentId;

    @ApiModelProperty(value = "商品编号")
    @TableField("GOODSID")
    private Integer goodsid;

    @ApiModelProperty(value = "评论信息")
    @TableField("MSG")
    private String msg;

    @ApiModelProperty(value = "评论人编号")
    @TableField("CUSER_ID")
    private String cuserId;

    @ApiModelProperty(value = "被评论人编号")
    @TableField("USER_ID")
    private String userId;

    @ApiModelProperty(value = "软删除")
    @TableField("FLAG")
    private Integer flag;

    @ApiModelProperty(value = "用户留言时间")
    @TableField("CUSERTIME")
    @JsonFormat(shape = JsonFormat.Shape.STRING, pattern = "yyyy-MM-dd HH:mm:ss", timezone = "GMT+8")
    private LocalDateTime cusertime;

    @ApiModelProperty(value = "卖家回复时间")
    @TableField("USERTIME")
    @JsonFormat(shape = JsonFormat.Shape.STRING, pattern = "yyyy-MM-dd HH:mm:ss", timezone = "GMT+8")
    private LocalDateTime usertime;


}
